home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / boot / scsiDiskBoot / sun3.md / devFsOpTable.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-06-13  |  1.6 KB  |  71 lines

  1. /* 
  2.  * devFsOpTable.c --
  3.  *
  4.  *    The operation tables for the file system devices.  
  5.  *
  6.  * Copyright 1987, 1988 Regents of the University of California
  7.  * Permission to use, copy, modify, and distribute this
  8.  * software and its documentation for any purpose and without
  9.  * fee is hereby granted, provided that the above copyright
  10.  * notice appear in all copies.  The University of California
  11.  * makes no representations about the suitability of this
  12.  * software for any purpose.  It is provided "as is" without
  13.  * express or implied warranty.
  14.  */
  15.  
  16. #ifdef notdef
  17. static char rcsid[] = "$Header: /sprite/src/kernel/dev/sun3.md/RCS/devFsOpTable.c,v 8.4 89/05/24 07:50:49 rab Exp Locker: brent $ SPRITE (Berkeley)";
  18. #endif not lint
  19.  
  20.  
  21. #include "sprite.h"
  22. #include "dev.h"
  23. #include "devInt.h"
  24. #include "rawBlockDev.h"
  25. #include "devFsOpTable.h"
  26. #include "devTypesInt.h"
  27.  
  28. /*
  29.  * Device specific include files.
  30.  */
  31.  
  32. #include "devSCSIDisk.h"
  33. #include "devBlockDevice.h"
  34.  
  35.  
  36. static ReturnStatus NullProc();
  37.  
  38.  
  39. /*
  40.  * Device type specific routine table:
  41.  *    This is for the file-like operations as they apply to devices.
  42.  *    DeviceOpen
  43.  *    DeviceRead
  44.  *    DeviceWrite
  45.  *    DeviceIOControl
  46.  *    DeviceClose
  47.  *    DeviceSelect
  48.  *    BlockDeviceAttach
  49.  */
  50.  
  51.  
  52. DevFsTypeOps devFsOpTable[] = {
  53.     /*
  54.      * New SCSI Disk interface.
  55.      */
  56.     {DEV_SCSI_DISK, DevRawBlockDevOpen, DevRawBlockDevRead,
  57.             DevRawBlockDevWrite, DevRawBlockDevIOControl, 
  58.             DevRawBlockDevClose, NullProc, DevScsiDiskAttach},
  59.  
  60. };
  61.  
  62. int devNumDevices = sizeof(devFsOpTable) / sizeof(DevFsTypeOps);
  63.  
  64.  
  65. static ReturnStatus
  66. NullProc()
  67. {
  68.     return(SUCCESS);
  69. }
  70.  
  71.